ROOT=$(php -r "echo realpath('`dirname $0`/../');")

rm -rf $ROOT/project/cscope.*

find $ROOT -name "*.php" | grep -v "Zend" | grep -v "PHPUnit"  | grep -v "phpmyadmin"> $ROOT/project/cscope.files

#php $root/project/buildincludes.php
cd $ROOT/project
cscope -b

ctags  -R --fields=+lS $ROOT

